package com.hwadee.ems.exception;

import lombok.Getter;

/**
 * @author EnosElinsa
 * @since 2024/06/19
 */
@Getter
public class CommonException extends RuntimeException {

    private int code;

    public CommonException(String message, int code) {
        super(message);
        this.code = code;
    }

    public CommonException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }

    public CommonException(Throwable cause, int code) {
        super(cause);
        this.code = code;
    }
    
}
